ifneq ($(KERNELRELEASE),)

obj-m:=sema.o
sema-objs:=sema_demo.o

else

#KDIR:=/lib/modules/`uname -r`/kernel
KDIR:=/home/supanyang/u-boot/linux-3.0.85
all:
    make -C $(KDIR) M=$(shell pwd) modules
	
clean:
    make -C $(KDIR) M=$(shell pwd) clean
    
endif